package com.bank6677.sync.csm.domain.old;

import java.util.Date;

public class ServicePurpose {
    private Integer purposeId;
    private Integer serviceTypeId;
    private String purposeName;
    private String remark;
    private Integer orderDisp;
    private Date createDt;
    private Date updateDt;
    private String serviceTypeName;
    
    
    public String getServiceTypeName() {
		return serviceTypeName;
	}

	public void setServiceTypeName(String serviceTypeName) {
		this.serviceTypeName = serviceTypeName;
	}

	public Integer getPurposeId() {
        return purposeId;
    }

    public void setPurposeId(Integer purposeId) {
        this.purposeId = purposeId;
    }

    public Integer getServiceTypeId() {
        return serviceTypeId;
    }

    public void setServiceTypeId(Integer serviceTypeId) {
        this.serviceTypeId = serviceTypeId;
    }

    public String getPurposeName() {
        return purposeName;
    }

    public void setPurposeName(String purposeName) {
        this.purposeName = purposeName == null ? null : purposeName.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public Integer getOrderDisp() {
        return orderDisp;
    }

    public void setOrderDisp(Integer orderDisp) {
        this.orderDisp = orderDisp;
    }

    public Date getCreateDt() {
        return createDt;
    }

    public void setCreateDt(Date createDt) {
        this.createDt = createDt;
    }

    public Date getUpdateDt() {
        return updateDt;
    }

    public void setUpdateDt(Date updateDt) {
        this.updateDt = updateDt;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (!(that instanceof ServicePurpose)) {
            return false;
        }
        ServicePurpose other = (ServicePurpose) that;
        return this.getPurposeId() == null ? other == null : this.getPurposeId().equals(other.getPurposeId())
            && this.getServiceTypeId() == null ? other == null : this.getServiceTypeId().equals(other.getServiceTypeId())
            && this.getPurposeName() == null ? other == null : this.getPurposeName().equals(other.getPurposeName())
            && this.getRemark() == null ? other == null : this.getRemark().equals(other.getRemark())
            && this.getOrderDisp() == null ? other == null : this.getOrderDisp().equals(other.getOrderDisp())
            && this.getCreateDt() == null ? other == null : this.getCreateDt().equals(other.getCreateDt())
            && this.getUpdateDt() == null ? other == null : this.getUpdateDt().equals(other.getUpdateDt());
    }

    @Override
    public int hashCode() {
        int hash = 23;
        if (getPurposeId() != null) {
            hash *= getPurposeId().hashCode();
        }
        if (getServiceTypeId() != null) {
            hash *= getServiceTypeId().hashCode();
        }
        if (getPurposeName() != null) {
            hash *= getPurposeName().hashCode();
        }
        if (getRemark() != null) {
            hash *= getRemark().hashCode();
        }
        if (getOrderDisp() != null) {
            hash *= getOrderDisp().hashCode();
        }
        if (getCreateDt() != null) {
            hash *= getCreateDt().hashCode();
        }
        if (getUpdateDt() != null) {
            hash *= getUpdateDt().hashCode();
        }
        return hash;
    }
}